#ifndef __UTILS_H
#define __UTILS_H

#define SUCCESS 0;
#define ERROR -1;

int Hex2Char(unsigned int fromi,unsigned char * toc);
int Char2Hex(unsigned char fromc,unsigned int * toi);
int Bitstr2ByteArr(unsigned char * bs, unsigned char * ba);
int ByteArr2Bitstr(unsigned char * ba, unsigned char * bs);

#endif